﻿using Kdbndp;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IconYuan.Model.Entity.Stores
{
    /// <summary>
    /// 店铺
    /// </summary>
    [SugarTable("t_store")]
    public class Store
    {
        /// <summary>
        /// 自增
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int store_id { get; set; }
        /// <summary>
        /// 商城名称
        /// </summary>
        public string store_name { get; set; }
        /// <summary>
        /// 商城简介
        /// </summary>
        public string describe { get; set; }
        /// <summary>
        /// 商城logo文件ID
        /// </summary>
        public int logo_image_id { get; set; }

        /// <summary>
        /// 排序(数字越小越靠前)
        /// </summary>
        public int sort { get; set; } = 0;
        /// <summary>
        /// 营业开始时间，格式: 09:00
        /// </summary>
        public string bus_start_time { get; set; }
        /// <summary>
        /// 营业截止时间，格式: 18:00
        /// </summary>
        public string bus_end_time { get; set; }
        /// <summary>
        /// 营业工作日,不填表示不限制，格式: 0,1,2,3,4,5,6
        /// </summary>
        public string bus_days { get; set; } = string.Empty;
        /// <summary>
        /// 是否删除
        /// </summary>
        public int is_delete { get; set; } = 0;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }
        public DateTime update_time { get; set; }
        /// <summary>
        /// logo路径
        /// </summary>
        public string logos { get; set; } = string.Empty;
        /// <summary>
        /// logo路径（列表方式）
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<string> logoList { get; set; }
    }
}
